package com.winit.uschedule.manager;

import com.winit.uschedule.model.UsTaskDefine;
import com.winit.uschedule.model.UscheduleTask;
import com.winit.uschedule.repository.UsCheduleTaskRepository;
import com.winit.uschedule.repository.UsTaskDefineRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by wanglin on 2018/6/14.
 */

@Component
public class UsTaskManager {
    private static Logger log = LoggerFactory.getLogger(UsTaskDefineManager.class);
    @Autowired
    UsCheduleTaskRepository usCheduleTaskRepository;

    public UscheduleTask findById(String taskId){
        return usCheduleTaskRepository.findOne(taskId);
    }
}
